export const delById = (id) => ({ type: 'delById', id })
export const addTodo = (todo) => ({ type: 'addTodo', todo })
export const changeDoneById = (id) => ({ type: 'changeDoneById', id })
export const clearDone = () => ({ type: 'clearDone' })
export const checkAllTodo = (ckecked) => ({ type: 'checkAllTodo', ckecked })
export const setTodos = (todos) => ({ type: 'setTodos', todos })
export const changeType = (payload) => ({ type: 'changeType', payload })